<include file="Public/head"/>
<link href="__PUBLIC__/qwadmin/css/shen/shen.css" rel="stylesheet" type="text/css" />

<body class="no-skin">
<style>
/*body .demo-class .layui-layer-title{background:#6495ED; color:#fff; border: none;}
body .demo-class .layui-layer-btn{border-top:1px solid #E9E7E7}
body .demo-class .layui-layer-btn a{background:#333;}
body .demo-class .layui-layer-btn .layui-layer-btn1{background:#999;}*/

/*body th{
    color:#4F94CD;
    font-size:15px;
}
body td{
    font-size:14px;
}*/
.ddd tr{border: none;}
.d11{display: flex;flex-direction: row;justify-content: center;align-items: flex-start;margin-top: 20px; margin-bottom: 20px;}
.ppu1{width: 10%;height: 80%;border: none;}
.ppu{border: none;width: 100%;height: 80%;text-align: center;}
.ddd td{height: 40px;border-bottom: 0px;border-right: 0px;}
.ddd th{height: 40px;border-bottom: 0px;border-right: 0px;}






#tet th{
    text-align: center;
}
#tet td{
    text-align: center;
}

#divv input{
    margin:0px 5px;
}
.dds input{
    margin:0px 5px;
}


.sp {
    border:1px solid #ccc;
    border-radius:50px;
    /*margin-top:30px;*/
}
.sp ul{
    margin-top:20px;
}
.sp ul li{
     float:left;
    margin:3px 10px;
    font-size:15px; 
    margin-left:28px;
}

.sp ul li button{
    width:140px;
    height:40px;
    border:1px solid #ccc;
    border-radius:50px;
}

#xxx ul{
    float:left;
    margin-top:5%;
}

#xxx ul li{
    float:left;
    padding: 5px 15px;
    margin-left:8px;
    font-size:15px;

}

</style>
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
           
                <input type="button" value="市(内)派车" style="margin-top:10px;background-color:#fff;border:2px solid #1E90FF;color:#1E90FF;height:40px;width:150px;font-size:17px;box-shadow: 3px 3px 10px #1E90FF;" onclick="sn()">&nbsp&nbsp&nbsp&nbsp
                <input type="button" value="市(外)派车" style="margin-top:10px;background-color:#fff;border:2px solid #1E90FF;color:#1E90FF;height:40px;width:150px;font-size:17px;box-shadow: 3px 3px 10px #1E90FF;" onclick="sw()">
                <!-- 行政物资审核 -->
                   <div class="row">
                   
                        <div class="widget-box" style="margin-top:30px;height:0px;">

                            <div class="widget-header">

                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                 <b>{$title}</b>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                  
                                   <?php if($lei == 'nei'): ?>
                                        <input type="button"  value="导出excel" class=" btn-info"  style="float:left;border-radius:25px;width:100px;margin-top:5px;" onClick="return export_excel();"    /><span style="float:left; width:20px;height:100%;">&nbsp;</span>
                                   <?php else: ?>
                                        <input type="button"  value="导出excel" class=" btn-info"  style="float:left;border-radius:25px;width:100px;margin-top:5px;" onClick="return aaa();"    /><span style="float:left; width:20px;height:100%;">&nbsp;</span>
                                    <?php endif ?>
                                    <div class="widget-main row" style="height:100%;margin-top:2px;">
                                        <?php if(!empty($list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <!-- <form id="form" method="post" action="{:U('Shenp/qtong')}"> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <!-- <th class="center"><input class="check-all" type="checkbox" value=""></th> -->
                                                            <th class="center">日期</th>
                                                            <th class="center">用车事由</th>
                                                            <th class="center">出发地点</th>
                                    
                                                            <th class="center">目的地</th>
                                                            <th class="center">起始读数</th>

                                                            <th class="center">结束读数</th>
                                                            <th class="center">公里数</th>
                                                            <th class="center">用车人</th>
                                                            <th class="center">出发时间</th>
                                                            <th class="center">回公司时间</th>
                                                            <th class="center">费用</th>
                                                            <th class="center">备注</th>
                                                            <th class="center">操作</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="list" id="v">
                                                        <tr>
                                                          <!--   <td class="center">
                                                            <input class="uids" type="checkbox" name="uids[]" value="{$v['id']}">
                                                            </td> -->
                                                            <td class="center" id="ddi">{$v.time}</td>                                                   
                                                            <td class="center">
                                                              {$v.content}
                                                            </td>                                                   
                                                            <td class="center">{$v.s_place}</td>                                                   
                                                            <td class="center">{$v.e_place}</td>                                                   
                                                            <td class="center">{$v.q}</td>                                                   
                                                            <td class="center">{$v.s}</td>                                                   
                                                            <td class="center">{$v.km}</td>                                                   
                                                            <td class="center">{$v.uname}</td>                                                   
                                                            <td class="center">{$v.s_time}</td>                                                   
                                                            <td class="center">{$v.e_time}</td>                                                   
                                                            <td class="center">{$v.rmb}</td>                                                   
                                                            <td class="center">{$v.cont}</td> <td class="center">
                                                                
                                                                <button class="jujue"  onclick="del({$v.id},this)">删除</button>
                                                            </td>                                                  
                                                            
                                                          
                                                           
                                                               
                                                           
                                                          
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                 </form>
                                                <!-- 行政物资审核 END -->
                                                {$page}
                                        <?php endif ?>
                                                </div>
                                  
            

                                      
       
         
                    
                     


                


            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <!-- <include file="Public/footer"/> -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script>



function sn()
{
    location.href="{:U('Che/cha')}";
}



function sw()
{
    location.href="{:U('Che/cha',array('type'=>1))}";
}


//导出excel
function export_excel(){
    location.href="{:U('Export/cdao')}";
}

function aaa(){
    location.href="{:U('Export/cdao',array('type'=>1))}";
}

function del(id,obj)
{
    // console.log(id);
    $.ajax({
            type: "POST",
            url:"{:U('Che/del')}",
            data:{'id':id},// 要提交的表单 
            beforeSend:function(){
                layer.load(0, {shade: false});
            },
            success: function(data) {
                if (data == 1111) {
                        layer.msg('删除成功!', {icon: 1});
                       
                        history.go(0); 
                    }else{
                        layer.msg('删除失败!', {icon: 2});
                    }
            },
            complete: function() {
                layer.closeAll('loading');
            }
        });
}

</script>


</body>

</html>
